package com.qingge.springboot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qingge.springboot.entity.College;
import com.qingge.springboot.mapper.CollegeMapper;
import com.qingge.springboot.service.ICollegeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xyc
 * @since 2022-04-14
 */
@Service
public class CollegeServiceImpl extends ServiceImpl<CollegeMapper, College> implements ICollegeService {

    @Resource
    private CollegeMapper mapper;

    @Override
    public Integer getCollegeCount() {
        return mapper.getCollegeCount();
    }

    @Override
    public Page<College> findPage(Page<College> page) {
        return mapper.findPage(page);
    }
}
